<template>
  <div class="circle" :style="{ width:radius, height:radius }">
    <div class="x" >
      
    </div>
    <slot name="header"></slot>
  </div>
</template>

<script lang="ts">
import Vue from "vue";
export default Vue.extend({
  props: {
    radius: {
      type: String,
      default: "40rem"
    }
  }
});
</script>

<style scoped>
.circle {
  border-radius: 50%;
  animation-name: rotate;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  background-color: saddlebrown;
  animation-timing-function: linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(60deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.x {
  width: 3rem;
  height: 3rem;
  background-color: azure;
  margin: 0 auto;
}
</style>


